import request from "@/utils/request";

export default {
    // 根据病房id查询病床
    getBedById(id) {
        return request({
            url: `http://localhost/api/hosp/bed/getBedById/${id}`,
            method: 'get'
        });
    },

    // 新增病床
    addHouse(data) {
        return request({
            url: `http://localhost/api/hosp/bed/addHouse`,
            method: 'post',
            data
        });
    },
}